import request from './index'

// 获取
export function getApartment() {
  return request.get('/apartments')
}
// 添加
export function addApartment(data) {
  return request.post('/addApartment', data)
}
// 更新
export function updateApartment(data) {
  return request.post('/updateApartment', data)
}
// 删除
export function deleteApartment(data) {
  return request.delete('/deleteApartment', {
    params: data
  })
}
